﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title - My ASP.NET MVC Application</title>
    @Styles.Render("~/Content/bootstrapcss")
    @Styles.Render("~/Content/css-responsive")
    @using NUS.ISS.ARS.Web.Admin.Helper
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
    @*<style type="text/css">
          /* Sticky footer styles
        -------------------------------------------------- */
          html,
          body {
              height: 100%;
              /* The html and body elements cannot have any padding or margin. */
          }

          /* Wrapper for page content to push down footer */
          #wrap {
              min-height: 100%;
              height: auto !important;
              height: 100%;
              /* Negative indent footer by it's height */
              margin: 0 auto -60px;
          }

          /* Set the fixed height of the footer here */
          #push,
          #footer {
              height: 60px;
          }
          #footer {
              background-color: #f5f5f5;
          }
          /* Custom page CSS
        -------------------------------------------------- */
          /* Not required for template or sticky footer method. */
          .container {
              width: auto;
              max-width: 680px;
          }

              .container .credit {
                  margin: 20px 0;
              }
    </style>*@
</head>

<body>
    <div id="wrap">
        <div class="navbar">
            <div class="navbar-inner">
                <div class="brand"><i class="fa fa-plane"></i>&nbsp;@Html.ActionLink("Airline Reservation System", "Index", "Home")</div>
                <ul class="nav nav-pills">
                                            
                    <!--if (Session["user"] !=null && Session["user"].ToString() == "admin")-->
                   @if(Request.IsAuthenticated)
                    {
                        string[] roles = Roles.GetRolesForUser();
                        foreach (string role in roles)
                        {
                            if (role.Contains("Admin"))
                            {
                                <li>@Html.MenuLink("Flight Schedule", "FlightSchedule", "FlightSchedule")</li>
                                <li>@Html.MenuLink("Cancel Booking", "CancelBooking", "CancelBooking")</li>
                                <li>@Html.MenuLink("Flight Report", "FlightReport", "Home")</li>
                                <li>@Html.MenuLink("Revenue Report", "RevenueReport", "Home")</li>
                                break;
                            }
                        }
                        
                    }
                </ul>
                <div class="pull-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                </div>
            </div>
        </div>
        <div class="span9">
            @RenderSection("featured", required: false)
            <div class="row-fluid">
                @RenderBody()
            </div>
        </div>
        <div id="push"></div>
    </div>
    

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrapjs")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/modernizr")
    
    @RenderSection("scripts", required: false)
</body>
</html>
